package com.ssy.lingxi.after.sale.api.model.vo.request;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

public class VerifyLogisticsVO implements Serializable {

    private static final long serialVersionUID = -5509058675136198819L;

    /**
     * 数据id
     */
    @NotNull(message = "数据id要大于0")
    @Positive(message = "数据id要大于0")
    private Long dataId;

    /**
     * 是否通过：0-拒绝，1-同意，2-确认
     */
    @NotNull(message = "是否通过不能为空")
    @PositiveOrZero(message = "是否通过不能为空")
    private Integer isAccept;

    /**
     * 操作会员
     */
    @NotNull(message = "操作会员不能为空")
    @Valid
    private UserLoginCacheDTO member;

    public Integer getIsAccept() {
        return isAccept;
    }

    public void setIsAccept(Integer isAccept) {
        this.isAccept = isAccept;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public UserLoginCacheDTO getMember() {
        return member;
    }

    public void setMember(UserLoginCacheDTO member) {
        this.member = member;
    }
}
